<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="true" %>
<%
	response.setHeader("Cache-Control","no-cache");
	response.setHeader("Pragma","no-cache");
	response.setDateHeader ("Expires", -1);
	
	if (session.isNew() || session.getAttribute("currentUser") == null) {
		response.sendRedirect("index.jsp");
	}
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Sprints</title>
	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
	<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
	
	<script src="javascript/Common.js"></script>
	<script>
		var sessionProjectId = "${sessionScope.currentUser.getProjectId()}";
		var sessionRoleName = "${sessionScope.currentUser.getRoleName()}";
	</script>
	<script src="javascript/Backlog.js"></script>
	<script src="javascript/Sprints.js"></script>
	<script src="javascript/jquery.numeric.js"></script>
	
	
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

	<link rel="stylesheet" href="stylesheets/stylesheet.css">
	<link rel="stylesheet" href="stylesheets/sprints.css" />
	<link rel="stylesheet" href="stylesheets/taskViewDialog.css" />
	<link rel="stylesheet" href="stylesheets/testViewDialog.css" />
	<link rel="stylesheet" href="stylesheets/backlog.css" />
</head>
<body>
	<div id="header">
		<%@ include file="/WEB-INF/jspf/HeaderBar.jspf" %>
	</div>
	<ul id="tabmenu">
		<li><a href="./Projects.jsp">Projects</a></li>
		<li><a href="./Team.jsp">Team</a></li>
		<li><a href="./Backlog.jsp">Backlog</a></li>
		<li><a class="active" href="./Sprints.jsp">Sprints</a></li>
		<li><a href="./Taskboard.jsp">Taskboard</a></li>
	</ul>

	<div id="content" class="colmask doublepage">
		<div class="colleft">
			<div id="backlog">
				<h2>Backlog</h2>
				<ul id="backlog-list" class="sortable-list ui-sortable"></ul>
			</div>
			<div id="sprints">
				<h2>Sprints</h2>
				<button id="add-sprint">Add new sprint</button>
			</div>
		</div>
	</div>

	<%@ include file="/WEB-INF/jspf/SprintsDialog.jspf" %>
	<%@ include file="/WEB-INF/jspf/UserStoryDialog.jspf" %>
	<%@ include file="/WEB-INF/jspf/ViewTestsDialog.jspf" %>
	<%@ include file="/WEB-INF/jspf/ViewTasksDialog.jspf" %>
	<%@ include file="/WEB-INF/jspf/TasksDialog.jspf" %>
	<%@ include file="/WEB-INF/jspf/TestsDialog.jspf" %>
	
</body>
</html>